package com.parking.platform.exception;

public enum PlatformExceptionCode {

    LOGIN_FAILED(3001,"登录失败,账号或者密码错误"),
    FAILED_ACCOUNT_STATE_NO(3002,"账号状态异常"),
    FAILED_ACCOUNT_IS_NO(3002,"账号不存在"),
    FAILED_ACCOUNT_STATE_DELETE(3003,"账号已被删除"),
    FAILED_ACCOUNT_STATE_ENABLE(3004,"账号已启用,请勿重复启用"),
    FAILED_ACCOUNT_STATE_DOWN(3005,"账号已禁用,请勿重复启用"),
    FAILED_ACCOUNT_EXIST(3006,"账号已存在"),
    FAILED_ROLE_EXIST(3007,"角色已存在"),
    FAILED_ROLE_NO_EXIST(3008,"角色不存在"),
    FAILED_ROLE_STATE_DELETE(3009,"角色已被删除"),
    FAILED_ROLE_STATE_ENABLE(3010,"角色已启用,请勿重复启用"),
    FAILED_ROLE_STATE_DOWN(3011,"角色已禁用,请勿重复启用"),
    FAILED_IS_NOT_ROLE(3012,"当前账号,暂无角色信息"),
    FAILED_ROLE_STATE(3013,"当前角色状态异常"),
    FAILED_RESOURCE_EXIST(3014,"当前资源不存在"),
    FAILED_RESOURCE_REPEAT(3015,"资源已存在,请勿重复添加"),
    FAILED_RESOURCE_PARENT_EXIST(3016,"您选择的父类资源不存在"),
    FAILED_ACCOUNT_IS_MY(3017,"您没有权力修改自己的账号"),

    FAILED_ACCOUNT_NO_LOGIN(3018,"未登录"),
    FAILED_ACCOUNT_LOGGED_IN(3019,"您的账号已经登录，请先退出"),
    LOGIN_PLATFORM_PAS_NO(3001,"旧密码错误")


    ;

    Integer code;
    String message;

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    PlatformExceptionCode(Integer code, String message){
        this.code = code;
        this.message = message;
    }
}
